package com.geeguo.ebuilder.client.business.system.logincertificate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.geeguo.ebuilder.client.base.tenant.model.DataContext;
import com.geeguo.ebuilder.client.business.system.logincertificate.model.LoginCertificateEntity;

import java.util.List;

public interface LoginCertificateService extends IService<LoginCertificateEntity> {

    LoginCertificateEntity getByCertificate(String certificate, DataContext dataContext);

    boolean save(LoginCertificateEntity entity, DataContext dataContext);
    boolean batchSave(List<LoginCertificateEntity> list, DataContext dataContext);

    boolean removeByUserId(String userId, DataContext dataContext);
}